package com.ljf.config.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.ljf.common.model.BasisModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 配置中心对象  config_dat_key_value
 *
 * @author LJF
 * @since 2024-12-17
 */
@Data
@ApiModel("配置中心")
@TableName("config_dat_key_value")
@EqualsAndHashCode(callSuper = true)
public class ConfigDatKeyValue extends BasisModel {

	private static final long serialVersionUID = 1L;

	/**
	 * Java类型: Long
	 * 数据库类型: bigint
	 * 注释: ID
	 * {@link ConfigDatKeyValue#COL_ID}
	 */
	@TableId(value="id", type= IdType.AUTO)
	@JsonProperty("id")
	@ApiModelProperty(value = "ID")
	private Long id;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(10)
	 * 注释: 归属服务
	 * {@link ConfigDatKeyValue#COL_BELONG_SERVICE}
	 */
	@TableField("belong_service")
	@JsonProperty("belongService")
	@ApiModelProperty(value = "归属服务")
	private String belongService;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(100)
	 * 注释: 关键字(表)
	 * {@link ConfigDatKeyValue#COL_TABLE_KEY}
	 */
	@TableField("table_key")
	@JsonProperty("tableKey")
	@ApiModelProperty(value = "关键字(表)")
	private String tableKey;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(50)
	 * 注释: 关键字(业务)
	 * {@link ConfigDatKeyValue#COL_BUSINESS_KEY}
	 */
	@TableField("business_key")
	@JsonProperty("businessKey")
	@ApiModelProperty(value = "关键字(业务)")
	private String businessKey;

	/**
	 * Java类型: String
	 * 数据库类型: varchar(500)
	 * 注释: 值
	 * {@link ConfigDatKeyValue#COL_VALUE}
	 */
	@TableField("value")
	@JsonProperty("value")
	@ApiModelProperty(value = "值")
	private String value;


	/**
	 * ID
	 * {@link ConfigDatKeyValue#id}
	 */
	public static final String COL_ID = "id";
	/**
	 * 归属服务
	 * {@link ConfigDatKeyValue#belongService}
	 */
	public static final String COL_BELONG_SERVICE = "belong_service";
	/**
	 * 关键字(表)
	 * {@link ConfigDatKeyValue#tableKey}
	 */
	public static final String COL_TABLE_KEY = "table_key";
	/**
	 * 关键字(业务)
	 * {@link ConfigDatKeyValue#businessKey}
	 */
	public static final String COL_BUSINESS_KEY = "business_key";
	/**
	 * 值
	 * {@link ConfigDatKeyValue#value}
	 */
	public static final String COL_VALUE = "value";

}
